package com.supreme.studyserver.controller;

import com.supreme.commonboot.utils.AjaxResp;
import com.supreme.studyserver.service.ReferenceService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping(value = "reference")
public class ReferenceController {

    @Resource
    private ReferenceService referenceService;

    @GetMapping(value = "softRef")
    public AjaxResp softReference() {
        referenceService.softReference();
        return AjaxResp.instance();
    }
}
